from common.Utils import FSDriver
from tests import LoginPageTest
from tests import EnrollPageTest
from tests import MainPageTest
from tests import MessageTest
from tests import MyPostsTest
from tests import PrivateCenterTest

if __name__ == "__main__":
    # 注意实例化

    # 注册失败
    EnrollPageTest.EnrollPage().fail_enroll_test()
    # 注册成功
    EnrollPageTest.EnrollPage().succeed_enroll_test()
    # 登录失败
    LoginPageTest.Loginpage().fail_login_test()
    # 登录成功
    LoginPageTest.Loginpage().succeed_login_test()
    # 主页面头部栏
    MainPageTest.Mainpage().head_col()
    # 私信
    MessageTest.Messagepage().message_test()
    # 我的帖子
    MyPostsTest.Myposttest().post_test()
    # 个人中心
    PrivateCenterTest.privatecenter().revise_privatecenter()
    # 重新登陆
    LoginPageTest.Loginpage().Special_login()
    # 再次更改密码
    PrivateCenterTest.privatecenter().password_reposition()



    FSDriver.driver.quit()
